		<?php
	include "vars.php";
	include "data_include.php";
	
	if (isset($_GET['game_uuid']) == true) {
		$dataFound = false;
		$reqStr = "SELECT * FROM `gameplay_data` WHERE `game_uuid` = " .$_GET['game_uuid']. " ORDER BY throw_id DESC";
		$res = $mysqli->query($reqStr);
		while($row=$res->fetch_assoc()) {
			$dataFound = true;
		}

		if($dataFound) {
			$res = $mysqli->query($reqStr);
			TS("gridtable");
				TH("Spieler");
				TH("Wurf_ID");
				TH("Wert");
				TH("Multiplikator");
				TH("löschen");
				while($row=$res->fetch_assoc()) {
					TRS();
						TDS("playerid");
							print($row['player_id']);
						TDE();
						TDS("throw_id");
							print($row['throw_id']);
						TDE();
						TDS("score");
							print($row['score']);
						TDE();
						TDS("multiplier");
							print($row['score_multiplier']);
						TDE();
						TDS("remover");
							print("<button class='throwRemover' name='removeThrow' data-gameuuid='".$row['game_uuid']."' value='".$row['throw_id']."'>X</button>");
						TDE();
					TRE();
				}
			TE();
		}
	}

?>